package cn.edu.guet.bean.editor;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@Component
//@AllArgsConstructor
//@NoArgsConstructor
public class Post {
    private String pid;
    private String userid;
    private String ptitle;
    private String ptime;
    private String tid;
    private String ptype;
    private String pcontent;
    private String pstatus;
    private int giveup;
    private int collect;

    private String realname;
    private String mname;
    private String gname;
    private String grade;
    private String cname;
    private String hphoto;

    public String getPid() {
        return pid;
    }

    public String getUserid() { return userid; }

    public void setUserid(String userid) { this.userid = userid; }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPtitle() {
        return ptitle;
    }

    public void setPtitle(String ptitle) {
        this.ptitle = ptitle;
    }

    public String getPtime() {
        return ptime;
    }

    public void setPtime(String ptime) {
        this.ptime = ptime;
    }

    public String getTid() {
        return tid;
    }

    public void setTid(String ptype) {
        this.tid = ptype;
    }

    public String getPtype() { return ptype; }

    public void setPtype(String ptype) { this.ptype = ptype; }

    public String getPcontent() {
        return pcontent;
    }

    public void setPcontent(String pcontent) {
        this.pcontent = pcontent;
    }

    public String getPstatus() {
        return pstatus;
    }

    public void setPstatus(String pstatus) {
        this.pstatus = pstatus;
    }

    public int getGiveup() { return giveup; }

    public void setGiveup(int giveup) { this.giveup = giveup; }

    public int getCollect() { return collect; }

    public void setCollect(int collect) { this.collect = collect; }

    public String getRealname() { return realname; }

    public void setRealname(String realname) { this.realname = realname; }

    public String getMname() { return mname; }

    public void setMname(String mname) { this.mname = mname; }

    public String getGname() { return gname; }

    public void setGname(String gname) { this.gname = gname; }

    public String getGrade() { return grade; }

    public void setGrade(String grade) { this.grade = grade; }

    public String getCname() { return cname; }

    public void setCname(String cname) { this.cname = cname; }

    public String getHphoto() { return hphoto; }

    public void setHphoto(String hphoto) { this.hphoto = hphoto; }

    @Override
    public String toString() {
        return "Post{" +
                "pid='" + pid + '\'' +
                ", userid='" + userid + '\'' +
                ", ptitle='" + ptitle + '\'' +
                ", ptime='" + ptime + '\'' +
                ", tid='" + tid + '\'' +
                ", pcontent='" + pcontent + '\'' +
                ", pstatus='" + pstatus + '\'' +
                ", realname='" + realname + '\'' +
                ", mname='" + mname + '\'' +
                ", gname='" + gname + '\'' +
                ", grade='" + grade + '\'' +
                ", cname='" + cname + '\'' +
                '}';
    }
}
